using System;
using System.Configuration;
using CoralNode.MvcClient.Configure;
using CoralNode.MvcClient.Contexts;

namespace NOAH.Themes.CoralAdmin._misc.scripts.ueditor.net
{
    /// <summary>
    /// Config 的摘要说明
    /// </summary>
    /// 
    public class UeditorConfig
    {
        private static string rootPath = ((CoralNodeSectionHandler)ConfigurationManager.GetSection("coralnode")).UploaderSetting.Root.TrimStart('~');

        public static string UEditRootPath = string.Format("{0}/{1}/{2}", rootPath,
            CoralNodeContext.GetCurrentWorkbench().ThemeCode, "UEditor");

        public static string SavePath = string.Format("{0}/{1}", UEditRootPath, DateTime.Now.ToString("yyyy-MM-dd"));
        public static string[] ImageSavePath = new string[] { SavePath };
    }
}